introspection: This patch fixes nullable return values fixes for the following symbol...
authorAlberto Ruiz <aruiz@gnome.org>
Mon, 28 Dec 2015 20:14:08 +0000 (20:14 +0000)
committerAlberto Ruiz <aruiz@gnome.org>
Fri, 8 Jan 2016 12:18:23 +0000 (12:18 +0000)
  gtk_accel_group_query
  gtk_accel_group_from_accel_closure
  gtk_accel_label_get_accel_widget
  gtk_accessible_get_widget
  gtk_actionable_get_action_name
  gtk_app_chooser_get_app_info
  gtk_app_chooser_button_get_heading
  gtk_app_chooser_dialog_get_heading
  gtk_application_get_window_by_id
  gtk_assistant_get_nth_page
  gtk_binding_set_find
  gtk_builder_get_object
  gtk_builder_lookup_callback_symbol
  gtk_builder_get_application
  gtk_button_get_image
  gtk_cell_area_get_focus_from_sibling
  gtk_cell_renderer_start_editing
  gtk_cell_view_get_model
  gtk_cell_view_get_displayed_row
  gtk_clipboard_get_owner
  gtk_container_get_focus_child
  gtk_container_get_focus_vadjustment
  gtk_container_get_focus_hadjustment
  gtk_dialog_get_widget_for_response
  gtk_drag_get_source_widget
  gtk_drag_dest_get_target_list
  gtk_drag_source_get_target_list
  gtk_entry_completion_get_model
  gtk_entry_completion_compute_prefix
  gtk_expander_get_label_widget
  gtk_file_chooser_get_filename
  gtk_file_chooser_get_current_folder
  gtk_file_chooser_get_uri
  gtk_file_chooser_get_current_folder_uri
  gtk_file_chooser_get_preview_widget
  gtk_file_chooser_get_preview_file
  gtk_file_chooser_get_preview_filename
  gtk_file_chooser_get_preview_uri
  gtk_file_chooser_get_extra_widget
  gtk_file_chooser_get_filter
  gtk_file_chooser_native_get_accept_label
  gtk_file_chooser_native_get_cancel_label
  gtk_file_filter_get_name
  gtk_font_chooser_get_font_family
  gtk_font_chooser_get_font_face
  gtk_font_chooser_get_font
  gtk_font_chooser_get_font_desc
  gtk_font_chooser_get_font_map
  gtk_frame_get_label
  gtk_gesture_get_device
  gtk_gesture_get_window
  gtk_gl_area_get_error
  gtk_header_bar_get_title
  gtk_header_bar_get_subtitle
  gtk_header_bar_get_custom_title
  gtk_icon_info_get_filename
  gtk_icon_view_get_path_at_pos
  gtk_icon_view_get_model
  gtk_image_get_pixbuf
  gtk_image_get_animation
  gtk_label_get_mnemonic_widget
  gtk_label_get_attributes
  gtk_check_version
  gtk_menu_button_get_popup
  gtk_menu_button_get_menu_model
  gtk_menu_button_get_align_widget
  gtk_menu_button_get_popover
  gtk_menu_item_get_submenu
  gtk_menu_item_get_accel_path
  gtk_native_dialog_get_title
  gtk_native_dialog_get_transient_for
  gtk_notebook_get_nth_page
  gtk_notebook_get_tab_label_text
  gtk_notebook_get_menu_label
  gtk_notebook_get_menu_label_text
  gtk_notebook_get_group_name
  gtk_notebook_get_action_widget
  gtk_offscreen_window_get_surface
  gtk_offscreen_window_get_pixbuf
  gtk_paned_get_child1
  gtk_paned_get_child2
  gtk_places_sidebar_get_location
  gtk_places_sidebar_get_nth_bookmark
  gtk_plug_get_socket_window
  gtk_popover_get_default_widget
  gtk_progress_bar_get_text
  gtk_recent_filter_get_name
  gtk_recent_manager_lookup_item
  gtk_settings_get_default
  gtk_socket_get_plug_window
  gtk_stack_sidebar_get_stack
  gtk_stack_switcher_get_stack
  gtk_style_context_get_section
  gtk_style_context_get_parent
  gtk_style_context_get_frame_clock
  gtk_test_find_widget
  gtk_text_buffer_get_mark
  gtk_text_tag_table_lookup
  gtk_text_view_get_tabs
  gtk_text_view_toggle_cursor_visible
  gtk_text_view_get_window
  gtk_toolbar_get_nth_item
  gtk_tool_button_get_label
  gtk_tool_button_get_icon_name
  gtk_tool_button_get_label_widget
  gtk_tool_button_get_icon_widget
  gtk_tool_palette_get_drop_item
  gtk_tool_palette_get_drop_group
  gtk_tree_model_filter_convert_child_path_to_path
  gtk_tree_model_filter_convert_path_to_child_path
  gtk_tree_model_sort_convert_child_path_to_path
  gtk_tree_model_sort_convert_path_to_child_path
  gtk_tree_view_get_column
  gtk_tree_view_get_bin_window
  gtk_tree_view_column_get_widget
  gtk_tree_view_column_get_tree_view
  gtk_widget_get_frame_clock
  gtk_window_group_get_current_device_grab
  GtkTextBufferSerializeFunc

67 files changed:
gtk/gtkaccelgroup.c
gtk/gtkaccellabel.c
gtk/gtkaccessible.c
gtk/gtkactionable.c
gtk/gtkappchooser.c
gtk/gtkappchooserbutton.c
gtk/gtkappchooserdialog.c
gtk/gtkapplication.c
gtk/gtkassistant.c
gtk/gtkbindings.c
gtk/gtkbuilder.c
gtk/gtkbutton.c
gtk/gtkcalendar.h
gtk/gtkcellarea.c
gtk/gtkcellrenderer.c
gtk/gtkcellview.c
gtk/gtkclipboard.c
gtk/gtkcontainer.c
gtk/gtkdialog.c
gtk/gtkdnd.c
gtk/gtkdragsource.c
gtk/gtkentrycompletion.c
gtk/gtkexpander.c
gtk/gtkfilechooser.c
gtk/gtkfilechoosernative.c
gtk/gtkfilefilter.c
gtk/gtkfontchooser.c
gtk/gtkframe.c
gtk/gtkgesture.c
gtk/gtkglarea.c
gtk/gtkheaderbar.c
gtk/gtkicontheme.c
gtk/gtkiconview.c
gtk/gtkimage.c
gtk/gtklabel.c
gtk/gtkmain.c
gtk/gtkmenubutton.c
gtk/gtkmenuitem.c
gtk/gtknativedialog.c
gtk/gtknotebook.c
gtk/gtkoffscreenwindow.c
gtk/gtkpaned.c
gtk/gtkplacessidebar.c
gtk/gtkplug.c
gtk/gtkpopover.c
gtk/gtkprogressbar.c
gtk/gtkrecentfilter.c
gtk/gtkrecentmanager.c
gtk/gtksettings.c
gtk/gtksocket.c
gtk/gtkstacksidebar.c
gtk/gtkstackswitcher.c
gtk/gtkstylecontext.c
gtk/gtktestutils.c
gtk/gtktextbuffer.c
gtk/gtktextbufferrichtext.h
gtk/gtktexttagtable.c
gtk/gtktextview.c
gtk/gtktoolbar.c
gtk/gtktoolbutton.c
gtk/gtktoolpalette.c
gtk/gtktreemodelfilter.c
gtk/gtktreemodelsort.c
gtk/gtktreeview.c
gtk/gtktreeviewcolumn.c
gtk/gtkwidget.c
gtk/gtkwindowgroup.c

index d4c04402e285f4e661e78d83acab4553c4b5990c..70866378b89d6d952a69934fce10a77d6ef23a8f 100644 (file)
@@ -818,13 +818,13 @@ _gtk_accel_group_get_accelerables (GtkAccelGroup *accel_group)
  * @accel_group: the accelerator group to query
  * @accel_key: key value of the accelerator
  * @accel_mods: modifier combination of the accelerator
- * @n_entries: (out) (allow-none): location to return the number
+ * @n_entries: (out) (optional): location to return the number
  *     of entries found, or %NULL
  *
  * Queries an accelerator group for all entries matching @accel_key
  * and @accel_mods.
  *
- * Returns: (transfer none) (array length=n_entries): an array of
+ * Returns: (nullable) (transfer none) (array length=n_entries): an array of
  *     @n_entries #GtkAccelGroupEntry elements, or %NULL. The array
  *     is owned by GTK+ and must not be freed.
  */
@@ -854,7 +854,7 @@ gtk_accel_group_query (GtkAccelGroup   *accel_group,
  * Finds the #GtkAccelGroup to which @closure is connected;
  * see gtk_accel_group_connect().
  *
- * Returns: (transfer none): the #GtkAccelGroup to which @closure
+ * Returns: (nullable) (transfer none): the #GtkAccelGroup to which @closure
  *     is connected, or %NULL
  */
 GtkAccelGroup*
index bd2a180662334bbcd9a7e0a76bf32a30d79bc94a..35938293e294500325a1488f7999a40a3b30f414 100644 (file)
@@ -352,7 +352,7 @@ gtk_accel_label_finalize (GObject *object)
  * Fetches the widget monitored by this accelerator label. See
  * gtk_accel_label_set_accel_widget().
  *
- * Returns: (transfer none): the object monitored by the accelerator label, or %NULL.
+ * Returns: (nullable) (transfer none): the object monitored by the accelerator label, or %NULL.
  **/
 GtkWidget*
 gtk_accel_label_get_accel_widget (GtkAccelLabel *accel_label)
index e8fe6ca9f6986698aba7aa5ec13146ee2c18c25d..9efbb0cf7aed1cb5f07b01f40b62e360caf685f5 100644 (file)
@@ -207,7 +207,7 @@ gtk_accessible_set_widget (GtkAccessible *accessible,
  * The returned widget does not have a reference added, so
  * you do not need to unref it.
  *
- * Returns: (transfer none): pointer to the #GtkWidget
+ * Returns: (nullable) (transfer none): pointer to the #GtkWidget
  *     corresponding to the #GtkAccessible, or %NULL.
  *
  * Since: 2.22
index 5e25f41321f71bb73e9e3390a00a1af65560d088..29a7f161924ddbc53bcc6891cf0c58b603114d9c 100644 (file)
@@ -86,7 +86,7 @@ gtk_actionable_default_init (GtkActionableInterface *iface)
  *
  * See gtk_actionable_set_action_name() for more information.
  *
- * Returns: the action name, or %NULL if none is set
+ * Returns: (nullable): the action name, or %NULL if none is set
  *
  * Since: 3.4
  **/
@@ -258,3 +258,4 @@ gtk_actionable_set_detailed_action_name (GtkActionable *actionable,
     gtk_actionable_set_action_target_value (actionable, NULL);
   g_strfreev (parts);
 }
+
index dae884c18017953f43e2275639ee7e6177c2572c..30c88e2e97b25ee2ac8f6bf8bb98cefe8a72ea36 100644 (file)
@@ -109,7 +109,7 @@ gtk_app_chooser_get_content_type (GtkAppChooser *self)
  *
  * Returns the currently selected application.
  *
- * Returns: (transfer full): a #GAppInfo for the currently selected
+ * Returns: (nullable) (transfer full): a #GAppInfo for the currently selected
  *     application, or %NULL if none is selected. Free with g_object_unref()
  *
  * Since: 3.0
index dc65d727740846e099a9dbea5cac5aab6573496e..7b6dcffd95e2baa47bcf4468909045de904f1e61 100644 (file)
@@ -973,7 +973,7 @@ gtk_app_chooser_button_set_heading (GtkAppChooserButton *self,
  *
  * Returns the text to display at the top of the dialog.
  *
- * Returns: the text to display at the top of the dialog,
+ * Returns: (nullable): the text to display at the top of the dialog,
  *     or %NULL, in which case a default text is displayed
  */
 const gchar *
index c58206356a14898703bed98ad7bea855d8a5208f..6efad7794f2431a80d84a13e05abb155ab47c49f 100644 (file)
@@ -863,7 +863,7 @@ gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *self,
  *
  * Returns the text to display at the top of the dialog.
  *
- * Returns: the text to display at the top of the dialog, or %NULL, in which
+ * Returns: (nullable): the text to display at the top of the dialog, or %NULL, in which
  *     case a default text is displayed
  */
 const gchar *
index 0a6e668dce9a7cc581441e6c5501b2413242981c..b69895101319179761915eaafaff663aa85020bc 100644 (file)
@@ -1154,7 +1154,7 @@ gtk_application_get_windows (GtkApplication *application)
  *
  * Returns the #GtkApplicationWindow with the given ID.
  *
- * Returns: (transfer none): the window with ID @id, or
+ * Returns: (nullable) (transfer none): the window with ID @id, or
  *   %NULL if there is no window with this ID
  *
  * Since: 3.6
index 4ef85bc260e3aa5a4d5b7c780c1cbed9205a82b5..c66bc0f8bd0c671411d0cc77eeab223517c02ca3 100644 (file)
@@ -1684,7 +1684,7 @@ gtk_assistant_get_n_pages (GtkAssistant *assistant)
  *
  * Returns the child widget contained in page number @page_num.
  *
- * Returns: (transfer none): the child widget, or %NULL
+ * Returns: (nullable) (transfer none): the child widget, or %NULL
  *     if @page_num is out of bounds
  *
  * Since: 2.10
index 39973e7d7681159f2fa790599c3e038cad0ef674..f3c3a730f584f9bbad36a16708275d2a6fc9d004 100644 (file)
@@ -751,7 +751,7 @@ gtk_binding_set_find_interned (const gchar *set_name)
  * The @set_name can either be a name used for gtk_binding_set_new()
  * or the type name of a class used in gtk_binding_set_by_class().
  *
- * Returns: (transfer none): %NULL or the specified binding set
+ * Returns: (nullable) (transfer none): %NULL or the specified binding set
  */
 GtkBindingSet*
 gtk_binding_set_find (const gchar *set_name)
index c074eb52adf43e8f6e9d1ea51cd6af1075b14242..f742374db3d05d99e46e012d7711065a017ef4e3 100644 (file)
@@ -1444,7 +1444,7 @@ gtk_builder_add_objects_from_string (GtkBuilder   *builder,
  * Gets the object named @name. Note that this function does not
  * increment the reference count of the returned object.
  *
- * Returns: (transfer none): the object named @name or %NULL if
+ * Returns: (nullable) (transfer none): the object named @name or %NULL if
  *    it could not be found in the object tree.
  *
  * Since: 2.12
@@ -2517,7 +2517,7 @@ gtk_builder_add_callback_symbols (GtkBuilder  *builder,
  * or for any case that one might be cusomizing signal connections
  * using gtk_builder_connect_signals_full()
  *
- * Returns: The callback symbol in @builder for @callback_name, or %NULL
+ * Returns: (nullable): The callback symbol in @builder for @callback_name, or %NULL
  *
  * Since: 3.10
  */
@@ -2660,7 +2660,7 @@ gtk_builder_set_application (GtkBuilder     *builder,
  * g_application_get_default(). If you want to use another application
  * for constructing proxies, use gtk_builder_set_application().
  *
- * Returns: (transfer none): the application being used by the builder,
+ * Returns: (nullable) (transfer none): the application being used by the builder,
  *     or %NULL
  *
  * Since: 3.10
index 012d64f16224818dde1ad7bdf9693800145f4312..697d7e26b51a9630d8e5b9ede2e1032437ce77a2 100644 (file)
@@ -2589,7 +2589,8 @@ gtk_button_set_image (GtkButton *button,
  * This may have been explicitly set by gtk_button_set_image()
  * or constructed by gtk_button_new_from_stock().
  *
- * Returns: (transfer none): a #GtkWidget or %NULL in case there is no image
+ * Returns: (nullable) (transfer none): a #GtkWidget or %NULL in case
+ *     there is no image
  *
  * Since: 2.6
  */
index ad4efcdfc2472666efa0552c4f3d60dfac367ed6..8c4870bf3c66d6c4c4aef54f0cf24dcaab3c81b3 100644 (file)
@@ -86,8 +86,8 @@ typedef enum
  *
  * Since: 2.14
  *
- * Returns: Newly allocated string with Pango markup with details
- * for the specified day, or %NULL.
+ * Returns: (nullable) (transfer full): Newly allocated string with Pango markup
+ *     with details for the specified day or %NULL.
  */
 typedef gchar* (*GtkCalendarDetailFunc) (GtkCalendar *calendar,
                                          guint        year,
index c7b9f2de6edbfbcfd470fe0b4af9a7380bdc6d93..575e1c7fdeceded274a391d5d705027fb431f1e7 100644 (file)
@@ -3187,7 +3187,7 @@ gtk_cell_area_get_focus_siblings (GtkCellArea     *area,
  * then chose to activate the focus cell for which the event
  * cell may have been a sibling.
  *
- * Returns: (transfer none): the #GtkCellRenderer for which @renderer
+ * Returns: (nullable) (transfer none): the #GtkCellRenderer for which @renderer
  *    is a sibling, or %NULL.
  *
  * Since: 3.0
index 2f157b2c499f2fb8573a582d1703489ff8ac64b0..d19143c563a7c28488833d94b0097fd07cf0f10e 100644 (file)
@@ -893,7 +893,7 @@ gtk_cell_renderer_activate (GtkCellRenderer      *cell,
  *
  * Passes an activate event to the cell renderer for possible processing.
  *
- * Returns: (transfer none): A new #GtkCellEditable, or %NULL
+ * Returns: (nullable) (transfer none): A new #GtkCellEditable, or %NULL
  **/
 GtkCellEditable *
 gtk_cell_renderer_start_editing (GtkCellRenderer      *cell,
index f76bac92881d2488c8d8f83f5b8c50b4392cc8a1..6615d93f3d4967ed36a4439f2a65cb161c7b1e85 100644 (file)
@@ -1271,7 +1271,7 @@ gtk_cell_view_set_model (GtkCellView  *cell_view,
  * Returns the model for @cell_view. If no model is used %NULL is
  * returned.
  *
- * Returns: (transfer none): a #GtkTreeModel used or %NULL
+ * Returns: (nullable) (transfer none): a #GtkTreeModel used or %NULL
  *
  * Since: 2.16
  **/
@@ -1328,7 +1328,7 @@ gtk_cell_view_set_displayed_row (GtkCellView *cell_view,
  * displayed row. If no row is currently displayed, 
  * %NULL is returned.
  *
- * Returns: the currently displayed row or %NULL
+ * Returns: (nullable) (transfer full): the currently displayed row or %NULL
  *
  * Since: 2.6
  */
index 2b0f99c3f64db5047140275a0b36881293ee3aee..5f53d8cd76736b8433131d61b745b37cf3fc126e 100644 (file)
@@ -737,7 +737,7 @@ gtk_clipboard_set_with_owner (GtkClipboard          *clipboard,
  * gtk_clipboard_clear() has not subsequently called, returns the owner set
  * by gtk_clipboard_set_with_owner().
  *
- * Returns: (transfer none): the owner of the clipboard, if any;
+ * Returns: (nullable) (transfer none): the owner of the clipboard, if any;
  *     otherwise %NULL.
  **/
 GObject *
index cb984318c2e20eeabf731996c7a048acb46fa284..3b2d922b35abdb6d62f4cbf667557aa626a759e0 100644 (file)
@@ -2465,7 +2465,7 @@ gtk_container_set_focus_child (GtkContainer *container,
  * currently focused widget. That can be obtained by calling
  * gtk_window_get_focus().
  *
- * Returns: (transfer none): The child widget which will receive the
+ * Returns: (nullable) (transfer none): The child widget which will receive the
  *          focus inside @container when the @conatiner is focussed,
  *          or %NULL if none is set.
  *
@@ -3463,8 +3463,8 @@ gtk_container_set_focus_vadjustment (GtkContainer  *container,
  * Retrieves the vertical focus adjustment for the container. See
  * gtk_container_set_focus_vadjustment().
  *
- * Returns: (transfer none): the vertical focus adjustment, or %NULL if
- *   none has been set.
+ * Returns: (nullable) (transfer none): the vertical focus adjustment, or
+ *   %NULL if none has been set.
  **/
 GtkAdjustment *
 gtk_container_get_focus_vadjustment (GtkContainer *container)
@@ -3518,7 +3518,7 @@ gtk_container_set_focus_hadjustment (GtkContainer  *container,
  * Retrieves the horizontal focus adjustment for the container. See
  * gtk_container_set_focus_hadjustment ().
  *
- * Returns: (transfer none): the horizontal focus adjustment, or %NULL if
+ * Returns: (nullable) (transfer none): the horizontal focus adjustment, or %NULL if
  *   none has been set.
  **/
 GtkAdjustment *
index e2713b24cc450ccbe77cb22549d6486bde4a9872..f8476ac7d278b0a38593d447efd3650acd200e82 100644 (file)
@@ -1425,7 +1425,7 @@ gtk_dialog_run (GtkDialog *dialog)
  * Gets the widget button that uses the given response ID in the action area
  * of a dialog.
  *
- * Returns: (transfer none): the @widget button that uses the given
+ * Returns: (nullable) (transfer none): the @widget button that uses the given
  *     @response_id, or %NULL.
  *
  * Since: 2.20
index 95cafaa63af8f2221b6036e6c679514d72c717db..e219dd568929baf2a37c76381ef74f651f784bea 100644 (file)
@@ -890,7 +890,7 @@ gtk_drag_get_data (GtkWidget      *widget,
  *
  * Determines the source widget for a drag.
  *
- * Returns: (transfer none): if the drag is occurring
+ * Returns: (nullable) (transfer none): if the drag is occurring
  *     within a single application, a pointer to the source widget.
  *     Otherwise, %NULL.
  */
@@ -1187,7 +1187,7 @@ gtk_drag_dest_unset (GtkWidget *widget)
  * Returns the list of targets this widget can accept from
  * drag-and-drop.
  * 
- * Returns: (transfer none): the #GtkTargetList, or %NULL if none
+ * Returns: (nullable) (transfer none): the #GtkTargetList, or %NULL if none
  */
 GtkTargetList*
 gtk_drag_dest_get_target_list (GtkWidget *widget)
index 6713b997361df2a174305bca805b4b6a762a6aaf..4d9aee1e10ca45c40677239fc0178a8781d8179b 100644 (file)
@@ -214,7 +214,7 @@ gtk_drag_source_unset (GtkWidget *widget)
  * Gets the list of targets this widget can provide for
  * drag-and-drop.
  *
- * Returns: (transfer none): the #GtkTargetList, or %NULL if none
+ * Returns: (nullable) (transfer none): the #GtkTargetList, or %NULL if none
  *
  * Since: 2.4
  */
index 5348419fe94c3549d9afc109c707693b1bd62bdc..f5fa48fbadb4d3e086d628c59faa42ac0d062252 100644 (file)
@@ -1172,7 +1172,7 @@ gtk_entry_completion_set_model (GtkEntryCompletion *completion,
  * Returns the model the #GtkEntryCompletion is using as data source.
  * Returns %NULL if the model is unset.
  *
- * Returns: (transfer none): A #GtkTreeModel, or %NULL if none
+ * Returns: (nullable) (transfer none): A #GtkTreeModel, or %NULL if none
  *     is currently being used
  *
  * Since: 2.4
@@ -1731,8 +1731,8 @@ gtk_entry_completion_cursor_on_match (GtkEntryCompletion *completion,
  * Note that a text column must have been set for this function to work,
  * see gtk_entry_completion_set_text_column() for details. 
  *
- * Returns: (transfer full): The common prefix all rows starting with @key
- *   or %NULL if no row matches @key.
+ * Returns: (nullable) (transfer full): The common prefix all rows starting with
+ *   @key or %NULL if no row matches @key.
  *
  * Since: 3.4
  **/
index fdeb634107f5040ad7e6c8e42391c15f2a6f315e..8891e398be468b819551935364255d1b60a00284 100644 (file)
@@ -1921,7 +1921,7 @@ gtk_expander_set_label_widget (GtkExpander *expander,
  * Retrieves the label widget for the frame. See
  * gtk_expander_set_label_widget().
  *
- * Returns: (transfer none): the label widget,
+ * Returns: (nullable) (transfer none): the label widget,
  *     or %NULL if there is none
  *
  * Since: 2.4
index 5ed25fddd38511c1b31ed82da4bdf5f2a887bf49..101decb5e3dcaa1799003913f038691e8927e2e9 100644 (file)
@@ -673,8 +673,8 @@ gtk_file_chooser_get_create_folders (GtkFileChooser *chooser)
  * If the file chooser is in folder mode, this function returns the selected
  * folder.
  * 
- * Returns: (type filename): The currently selected filename, or %NULL
- *  if no file is selected, or the selected file can't
+ * Returns: (nullable) (type filename): The currently selected filename,
+ *  or %NULL if no file is selected, or the selected file can't
  *  be represented with a local filename. Free with g_free().
  *
  * Since: 2.4
@@ -927,8 +927,8 @@ gtk_file_chooser_set_current_folder (GtkFileChooser *chooser,
  * currently-selected folder in that mode, use gtk_file_chooser_get_uri() as the
  * usual way to get the selection.
  * 
- * Returns: (type filename): the full path of the current folder,
- * or %NULL if the current path cannot be represented as a local
+ * Returns: (nullable) (type filename): the full path of the current
+ * folder, or %NULL if the current path cannot be represented as a local
  * filename.  Free with g_free().  This function will also return
  * %NULL if the file chooser was unable to load the last folder that
  * was requested from it; for example, as would be for calling
@@ -1021,10 +1021,10 @@ gtk_file_chooser_get_current_name (GtkFileChooser *chooser)
  * If the file chooser is in folder mode, this function returns the selected
  * folder.
  * 
- * Returns: The currently selected URI, or %NULL
- *  if no file is selected. If gtk_file_chooser_set_local_only() is set to %TRUE
- * (the default) a local URI will be returned for any FUSE locations.
- * Free with g_free()
+ * Returns: (nullable) (transfer full): The currently selected URI, or %NULL
+ *    if no file is selected. If gtk_file_chooser_set_local_only() is set to
+ *    %TRUE (the default) a local URI will be returned for any FUSE locations.
+ *    Free with g_free()
  *
  * Since: 2.4
  **/
@@ -1272,10 +1272,11 @@ gtk_file_chooser_set_current_folder_uri (GtkFileChooser *chooser,
  * currently-selected folder in that mode, use gtk_file_chooser_get_uri() as the
  * usual way to get the selection.
  * 
- * Returns: the URI for the current folder.  Free with g_free().  This
- * function will also return %NULL if the file chooser was unable to load the
- * last folder that was requested from it; for example, as would be for calling
- * gtk_file_chooser_set_current_folder_uri() on a nonexistent folder.
+ * Returns: (nullable) (transfer full): the URI for the current folder.
+ * Free with g_free().  This function will also return %NULL if the file chooser
+ * was unable to load the last folder that was requested from it; for example,
+ * as would be for calling gtk_file_chooser_set_current_folder_uri() on a
+ * nonexistent folder.
  *
  * Since: 2.4
  */
@@ -1560,7 +1561,7 @@ gtk_file_chooser_set_preview_widget (GtkFileChooser *chooser,
  * Gets the current preview widget; see
  * gtk_file_chooser_set_preview_widget().
  *
- * Returns: (transfer none): the current preview widget, or %NULL
+ * Returns: (nullable) (transfer none): the current preview widget, or %NULL
  *
  * Since: 2.4
  **/
@@ -1682,7 +1683,7 @@ gtk_file_chooser_get_use_preview_label (GtkFileChooser *chooser)
  * Gets the #GFile that should be previewed in a custom preview
  * Internal function, see gtk_file_chooser_get_preview_uri().
  *
- * Returns: (transfer full): the #GFile for the file to preview,
+ * Returns: (nullable) (transfer full): the #GFile for the file to preview,
  *     or %NULL if no file is selected. Free with g_object_unref().
  *
  * Since: 2.14
@@ -1752,7 +1753,7 @@ _gtk_file_chooser_remove_shortcut_folder (GtkFileChooser  *chooser,
  * Gets the filename that should be previewed in a custom preview
  * widget. See gtk_file_chooser_set_preview_widget().
  * 
- * Returns: (type filename): the filename to preview, or %NULL if
+ * Returns: (nullable) (type filename): the filename to preview, or %NULL if
  *  no file is selected, or if the selected file cannot be represented
  *  as a local filename. Free with g_free()
  *
@@ -1783,8 +1784,8 @@ gtk_file_chooser_get_preview_filename (GtkFileChooser *chooser)
  * Gets the URI that should be previewed in a custom preview
  * widget. See gtk_file_chooser_set_preview_widget().
  * 
- * Returns: the URI for the file to preview, or %NULL if no file is
- * selected. Free with g_free().
+ * Returns: (nullable) (transfer full): the URI for the file to preview,
+ *     or %NULL if no file is selected. Free with g_free().
  *
  * Since: 2.4
  **/
@@ -1831,7 +1832,7 @@ gtk_file_chooser_set_extra_widget (GtkFileChooser *chooser,
  * Gets the current preview widget; see
  * gtk_file_chooser_set_extra_widget().
  *
- * Returns: (transfer none): the current extra widget, or %NULL
+ * Returns: (nullable) (transfer none): the current extra widget, or %NULL
  *
  * Since: 2.4
  **/
@@ -1947,7 +1948,7 @@ gtk_file_chooser_set_filter (GtkFileChooser *chooser,
  *
  * Gets the current filter; see gtk_file_chooser_set_filter().
  *
- * Returns: (transfer none): the current filter, or %NULL
+ * Returns: (nullable) (transfer none): the current filter, or %NULL
  *
  * Since: 2.4
  **/
index c43e86f730cb1bfe2545fd7649c370c2980f0b11..33ce9df6a39783c881a702d57a1a88debd407d43 100644 (file)
@@ -199,8 +199,8 @@ G_DEFINE_TYPE_WITH_CODE (GtkFileChooserNative, gtk_file_chooser_native, GTK_TYPE
  *
  * Retrieves the custom label text for the accept button.
  *
- * Returns: The custom label, or %NULL for the default. This string is
- * owned by GTK+ and should not be modified or freed
+ * Returns: (nullable): The custom label, or %NULL for the default. This string
+ * is owned by GTK+ and should not be modified or freed
  *
  * Since: 3.20
  **/
@@ -245,8 +245,8 @@ gtk_file_chooser_native_set_accept_label (GtkFileChooserNative *self,
  *
  * Retrieves the custom label text for the cancel button.
  *
- * Returns: The custom label, or %NULL for the default. This string is
- * owned by GTK+ and should not be modified or freed
+ * Returns: (nullable): The custom label, or %NULL for the default. This string
+ * is owned by GTK+ and should not be modified or freed
  *
  * Since: 3.20
  **/
index 43cd05fd15caf9ef7542b311b0110a1a88b380e9..c4751e2613919cce8160135ce978e62d045eeb39 100644 (file)
@@ -432,7 +432,7 @@ gtk_file_filter_set_name (GtkFileFilter *filter,
  * 
  * Gets the human-readable name for the filter. See gtk_file_filter_set_name().
  * 
- * Returns: The human-readable name of the filter,
+ * Returns: (nullable): The human-readable name of the filter,
  *   or %NULL. This value is owned by GTK+ and must not
  *   be modified or freed.
  * 
index 0b2b5144ea8cddeda2b2926a4c04b2465be65a1d..6a14da26e11d6b4ce2a3df155e66d90db11df8fa 100644 (file)
@@ -135,7 +135,7 @@ gtk_font_chooser_default_init (GtkFontChooserInterface *iface)
  *
  * If the selected font is not installed, returns %NULL.
  *
- * Returns: (transfer none): A #PangoFontFamily representing the
+ * Returns: (nullable) (transfer none): A #PangoFontFamily representing the
  *     selected font family, or %NULL. The returned object is owned by @fontchooser
  *     and must not be modified or freed.
  *
@@ -158,7 +158,7 @@ gtk_font_chooser_get_font_family (GtkFontChooser *fontchooser)
  *
  * If the selected font is not installed, returns %NULL.
  *
- * Returns: (transfer none): A #PangoFontFace representing the
+ * Returns: (nullable) (transfer none): A #PangoFontFace representing the
  *     selected font group details, or %NULL. The returned object is owned by
  *     @fontchooser and must not be modified or freed.
  *
@@ -206,7 +206,7 @@ gtk_font_chooser_get_font_size (GtkFontChooser *fontchooser)
  * Use pango_font_description_equal() if you want to compare two
  * font descriptions.
  *
- * Returns: (transfer full) (allow-none): A string with the name
+ * Returns: (nullable) (transfer full): A string with the name
  *     of the current font, or %NULL if  no font is selected. You must
  *     free this string with g_free().
  *
@@ -259,7 +259,7 @@ gtk_font_chooser_set_font (GtkFontChooser *fontchooser,
  * Use pango_font_description_equal() if you want to compare two
  * font descriptions.
  *
- * Returns: (transfer full) (allow-none): A #PangoFontDescription for the
+ * Returns: (nullable) (transfer full): A #PangoFontDescription for the
  *     current font, or %NULL if  no font is selected.
  *
  * Since: 3.2
@@ -465,7 +465,7 @@ gtk_font_chooser_set_font_map (GtkFontChooser *fontchooser,
  * Gets the custom font map of this font chooser widget,
  * or %NULL if it does not have one.
  *
- * Returns: (transfer full) (allow-none): a #PangoFontMap, or %NULL
+ * Returns: (nullable) (transfer full): a #PangoFontMap, or %NULL
  *
  * Since: 3.18
  */
index 19b25713847772a7de4b4d13642ed0f62acc450f..e71477118cd4e76cf1a43382adb151ef288fe49e 100644 (file)
@@ -487,7 +487,7 @@ gtk_frame_set_label (GtkFrame *frame,
  * for the label widget if a non-%NULL argument was passed
  * to gtk_frame_new().)
  * 
- * Returns: the text in the label, or %NULL if there
+ * Returns: (nullable): the text in the label, or %NULL if there
  *               was no label widget or the lable widget was not
  *               a #GtkLabel. This string is owned by GTK+ and
  *               must not be modified or freed.
index 9da765426b66cbf7bc89fc69ce381ef7852b0f5c..0c70bebfcabc761258451b73adfa93d5901261d4 100644 (file)
@@ -1015,7 +1015,7 @@ gtk_gesture_init (GtkGesture *gesture)
  * Returns the master #GdkDevice that is currently operating
  * on @gesture, or %NULL if the gesture is not being interacted.
  *
- * Returns: (transfer none) (allow-none): a #GdkDevice, or %NULL
+ * Returns: (nullable) (transfer none): a #GdkDevice, or %NULL
  *
  * Since: 3.14
  **/
@@ -1568,7 +1568,7 @@ _gtk_gesture_cancel_sequence (GtkGesture       *gesture,
  * handled by @gesture. See gtk_gesture_set_window() for more
  * information.
  *
- * Returns: (transfer none) (allow-none): the user defined window, or %NULL if none
+ * Returns: (nullable) (transfer none): the user defined window, or %NULL if none
  *
  * Since: 3.14
  **/
index 409840974ad8dcc09530a96c4a78dd4c988b6da2..20dcf6e4ec0e7e1f1c1c3df99cb5b9b298e98854 100644 (file)
@@ -998,7 +998,7 @@ gtk_gl_area_set_error (GtkGLArea    *area,
  *
  * Gets the current error set on the @area.
  *
- * Returns: (transfer none): the #GError or %NULL
+ * Returns: (nullable) (transfer none): the #GError or %NULL
  *
  * Since: 3.16
  */
index 988bfcf41585a92ca2f668f650a600304caafb88..1d510317047b46e43de90366ce8b12200437cfb7 100644 (file)
@@ -1220,7 +1220,7 @@ gtk_header_bar_set_title (GtkHeaderBar *bar,
  *
  * Retrieves the title of the header. See gtk_header_bar_set_title().
  *
- * Returns: the title of the header, or %NULL if none has
+ * Returns: (nullable): the title of the header, or %NULL if none has
  *    been set explicitly. The returned string is owned by the widget
  *    and must not be modified or freed.
  *
@@ -1281,7 +1281,7 @@ gtk_header_bar_set_subtitle (GtkHeaderBar *bar,
  *
  * Retrieves the subtitle of the header. See gtk_header_bar_set_subtitle().
  *
- * Returns: the subtitle of the header, or %NULL if none has
+ * Returns: (nullable): the subtitle of the header, or %NULL if none has
  *    been set explicitly. The returned string is owned by the widget
  *    and must not be modified or freed.
  *
@@ -1374,7 +1374,7 @@ gtk_header_bar_set_custom_title (GtkHeaderBar *bar,
  * Retrieves the custom title widget of the header. See
  * gtk_header_bar_set_custom_title().
  *
- * Returns: (transfer none): the custom title widget
+ * Returns: (nullable) (transfer none): the custom title widget
  *    of the header, or %NULL if none has been set explicitly.
  *
  * Since: 3.10
index e42516958ed00cf914514fd99556b566dce92945..00ae3511c953ae1240c704e69e59aee0d984b727 100644 (file)
@@ -3624,7 +3624,7 @@ gtk_icon_info_get_base_scale (GtkIconInfo *icon_info)
  * filename if a builtin icon is returned; in this case, you should
  * use gtk_icon_info_get_builtin_pixbuf().
  * 
- * Returns: (type filename): the filename for the icon, or %NULL
+ * Returns: (nullable) (type filename): the filename for the icon, or %NULL
  *     if gtk_icon_info_get_builtin_pixbuf() should be used instead.
  *     The return value is owned by GTK+ and should not be modified
  *     or freed.
index e134053ed52e6e9b2da13b1373fd9b2428577a56..091c9a6bd2d958de262ac3e959ce35ff07a59bf1 100644 (file)
@@ -4441,8 +4441,8 @@ gtk_icon_view_convert_widget_to_bin_window_coords (GtkIconView *icon_view,
  * See gtk_icon_view_convert_widget_to_bin_window_coords() for converting
  * widget coordinates to bin_window coordinates.
  * 
- * Returns: The #GtkTreePath corresponding to the icon or %NULL
- * if no icon exists at that position.
+ * Returns: (nullable) (transfer full): The #GtkTreePath corresponding
+ * to the icon or %NULL if no icon exists at that position.
  *
  * Since: 2.6 
  **/
@@ -5082,7 +5082,7 @@ gtk_icon_view_set_model (GtkIconView *icon_view,
  * Returns the model the #GtkIconView is based on.  Returns %NULL if the
  * model is unset.
  *
- * Returns: (transfer none): A #GtkTreeModel, or %NULL if none is
+ * Returns: (nullable) (transfer none): A #GtkTreeModel, or %NULL if none is
  *     currently being used.
  *
  * Since: 2.6 
index 703515b38c1dee16c3f904bcb74995ee70aa1600..d53f16b1c0f504d50b7f56fad799132140e59925 100644 (file)
@@ -1346,7 +1346,7 @@ gtk_image_get_storage_type (GtkImage *image)
  * The caller of this function does not own a reference to the
  * returned pixbuf.
  * 
- * Returns: (transfer none): the displayed pixbuf, or %NULL if
+ * Returns: (nullable) (transfer none): the displayed pixbuf, or %NULL if
  * the image is empty
  **/
 GdkPixbuf*
@@ -1433,7 +1433,7 @@ gtk_image_get_icon_set  (GtkImage        *image,
  * The caller of this function does not own a reference to the
  * returned animation.
  * 
- * Returns: (transfer none): the displayed animation, or %NULL if
+ * Returns: (nullable) (transfer none): the displayed animation, or %NULL if
  * the image is empty
  **/
 GdkPixbufAnimation*
index af158e928fc641b41992da24c4604a07bcb73803..7efb7499c1029b83cf7fdd3991cb51d07dd2b900 100644 (file)
@@ -2101,7 +2101,7 @@ gtk_label_set_mnemonic_widget (GtkLabel  *label,
  * Retrieves the target of the mnemonic (keyboard shortcut) of this
  * label. See gtk_label_set_mnemonic_widget().
  *
- * Returns: (transfer none): the target of the label’s mnemonic,
+ * Returns: (nullable) (transfer none): the target of the label’s mnemonic,
  *     or %NULL if none has been set and the default algorithm will be used.
  **/
 GtkWidget *
@@ -2322,7 +2322,7 @@ gtk_label_set_attributes (GtkLabel         *label,
  * effective attributes for the label, use
  * pango_layout_get_attribute (gtk_label_get_layout (label)).
  *
- * Returns: (transfer none): the attribute list, or %NULL
+ * Returns: (nullable) (transfer none): the attribute list, or %NULL
  *     if none was set.
  **/
 PangoAttrList *
index 36237ae16c3325e5494aaba2991f265f76caf972..2437ddce9ecaf3cd9fc5903d00e8d0ffe4ad372d 100644 (file)
@@ -313,7 +313,7 @@ gtk_get_interface_age (void)
  * old version of gtk_check_version(), but still get loaded
  * into an application using a newer version of GTK+.
  *
- * Returns: %NULL if the GTK+ library is compatible with the
+ * Returns: (nullable): %NULL if the GTK+ library is compatible with the
  *   given version, or a string describing the version mismatch.
  *   The returned string is owned by GTK+ and should not be modified
  *   or freed.
index 6d546b5be7add178c63da76521d915eee09f764c..79aece01d9c95dbded9a1cbbd6b18814ff6d958c 100644 (file)
@@ -823,7 +823,7 @@ gtk_menu_button_set_popup (GtkMenuButton *menu_button,
  * If the button does not use a #GtkMenu, this function
  * returns %NULL.
  *
- * Returns: (transfer none): a #GtkMenu or %NULL
+ * Returns: (nullable) (transfer none): a #GtkMenu or %NULL
  *
  * Since: 3.6
  */
@@ -905,7 +905,7 @@ gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,
  *
  * Returns the #GMenuModel used to generate the popup.
  *
- * Returns: (transfer none): a #GMenuModel or %NULL
+ * Returns: (nullable) (transfer none): a #GMenuModel or %NULL
  *
  * Since: 3.6
  */
@@ -974,7 +974,7 @@ gtk_menu_button_set_align_widget (GtkMenuButton *menu_button,
  *
  * Returns the parent #GtkWidget to use to line up with menu.
  *
- * Returns: (transfer none): a #GtkWidget value or %NULL
+ * Returns: (nullable) (transfer none): a #GtkWidget value or %NULL
  *
  * Since: 3.6
  */
@@ -1220,7 +1220,7 @@ gtk_menu_button_set_popover (GtkMenuButton *menu_button,
  * If the button is not using a #GtkPopover, this function
  * returns %NULL.
  *
- * Returns: (transfer none): a #GtkPopover or %NULL
+ * Returns: (nullable) (transfer none): a #GtkPopover or %NULL
  *
  * Since: 3.12
  */
index c931e5290c15ba3b1e1cf103edbe3c75f6df4134..419f4c5f4db38241a390cbbbd18dbd5f4711bfcf 100644 (file)
@@ -1554,7 +1554,7 @@ gtk_menu_item_set_submenu (GtkMenuItem *menu_item,
  * Gets the submenu underneath this menu item, if any.
  * See gtk_menu_item_set_submenu().
  *
- * Returns: (transfer none): submenu for this menu item, or %NULL if none
+ * Returns: (nullable) (transfer none): submenu for this menu item, or %NULL if none
  */
 GtkWidget *
 gtk_menu_item_get_submenu (GtkMenuItem *menu_item)
@@ -2479,8 +2479,8 @@ gtk_menu_item_set_accel_path (GtkMenuItem *menu_item,
  *
  * See gtk_menu_item_set_accel_path() for details.
  *
- * Returns: the accelerator path corresponding to this menu
- *     item’s functionality, or %NULL if not set
+ * Returns: (nullable) (transfer none): the accelerator path corresponding to
+ *     this menu item’s functionality, or %NULL if not set
  *
  * Since: 2.14
  */
index e4fbb675bc01ed53b7f90829977811381cbb2e83..6e1a0ec3e2000ec5ca36fa0c013bf2b940e99898 100644 (file)
@@ -496,7 +496,7 @@ gtk_native_dialog_set_title (GtkNativeDialog *self,
  *
  * Gets the title of the #GtkNativeDialog.
  *
- * Returns: the title of the dialog, or %NULL if none has
+ * Returns: (nullable): the title of the dialog, or %NULL if none has
  *    been set explicitly. The returned string is owned by the widget
  *    and must not be modified or freed.
  *
@@ -546,8 +546,8 @@ gtk_native_dialog_set_transient_for (GtkNativeDialog *self,
  * Fetches the transient parent for this window. See
  * gtk_native_dialog_set_transient_for().
  *
- * Returns: (transfer none): the transient parent for this window, or %NULL
- *    if no transient parent has been set.
+ * Returns: (nullable) (transfer none): the transient parent for this window,
+ * or %NULL if no transient parent has been set.
  *
  * Since: 3.20
  **/
index 0da495cbcd6b5477e1992a037b46c8c10da33607..ee3ba1318902e4f5c101ad83875b552fc8668320 100644 (file)
@@ -7334,8 +7334,8 @@ gtk_notebook_get_current_page (GtkNotebook *notebook)
  *
  * Returns the child widget contained in page number @page_num.
  *
- * Returns: (transfer none): the child widget, or %NULL
- *     if @page_num is out of bounds
+ * Returns: (nullable) (transfer none): the child widget, or %NULL if @page_num
+ * is out of bounds
  */
 GtkWidget*
 gtk_notebook_get_nth_page (GtkNotebook *notebook,
@@ -8050,9 +8050,9 @@ gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
  * Retrieves the text of the tab label for the page containing
  * @child.
  *
- * Returns: the text of the tab label, or %NULL if the
- *     tab label widget is not a #GtkLabel. The string is owned
- *     by the widget and must not be freed.
+ * Returns: (nullable): the text of the tab label, or %NULL if the tab label
+ * widget is not a #GtkLabel. The string is owned by the widget and must not be
+ * freed.
  */
 const gchar *
 gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
@@ -8078,9 +8078,9 @@ gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
  *
  * Retrieves the menu label widget of the page containing @child.
  *
- * Returns: (transfer none): the menu label, or %NULL if the
- *     notebook page does not have a menu label other than the
- *     default (the tab label).
+ * Returns: (nullable) (transfer none): the menu label, or %NULL if the
+ * notebook page does not have a menu label other than the default (the tab
+ * label).
  */
 GtkWidget*
 gtk_notebook_get_menu_label (GtkNotebook *notebook,
@@ -8185,10 +8185,10 @@ gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
  * Retrieves the text of the menu label for the page containing
  * @child.
  *
- * Returns: the text of the tab label, or %NULL if the
- *     widget does not have a menu label other than the default
- *     menu label, or the menu label widget is not a #GtkLabel.
- *     The string is owned by the widget and must not be freed.
+ * Returns: (nullable): the text of the tab label, or %NULL if the widget does
+ * not have a menu label other than the default menu label, or the menu label
+ * widget is not a #GtkLabel. The string is owned by the widget and must not be
+ * freed.
  */
 const gchar *
 gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
@@ -8411,8 +8411,7 @@ gtk_notebook_set_group_name (GtkNotebook *notebook,
  *
  * Gets the current group name for @notebook.
  *
- * Returns: (transfer none): the group name,
- *     or %NULL if none is set.
+ * Returns: (nullable) (transfer none): the group name, or %NULL if none is set
  *
  * Since: 2.24
  */
@@ -8597,8 +8596,8 @@ gtk_notebook_set_tab_detachable (GtkNotebook *notebook,
  *
  * Gets one of the action widgets. See gtk_notebook_set_action_widget().
  *
- * Returns: (transfer none): The action widget with the given @pack_type
- *     or %NULL when this action widget has not been set
+ * Returns: (nullable) (transfer none): The action widget with the given
+ * @pack_type or %NULL when this action widget has not been set
  *
  * Since: 2.20
  */
index ec780e5568f4dd0cbf4e45d7b24dbcb06b565ca7..a07c7f67f28c953642c3b6b5646a4fd9c604f685 100644 (file)
@@ -297,7 +297,7 @@ gtk_offscreen_window_new (void)
  * a #cairo_surface_t.  If you need to keep this around over window
  * resizes then you should add a reference to it.
  *
- * Returns: (transfer none): A #cairo_surface_t pointer to the offscreen
+ * Returns: (nullable) (transfer none): A #cairo_surface_t pointer to the offscreen
  *     surface, or %NULL.
  *
  * Since: 2.20
@@ -319,7 +319,7 @@ gtk_offscreen_window_get_surface (GtkOffscreenWindow *offscreen)
  * and the application should unreference it once it is no longer
  * needed.
  *
- * Returns: (transfer full): A #GdkPixbuf pointer, or %NULL.
+ * Returns: (nullable) (transfer full): A #GdkPixbuf pointer, or %NULL.
  *
  * Since: 2.20
  */
index dfab414f1d3de03681e9ed877cd076380131b8f3..8c6495d62dba7089fe985c105dcc5bbde57dce75 100644 (file)
@@ -2362,7 +2362,7 @@ gtk_paned_set_position (GtkPaned *paned,
  * 
  * Obtains the first child of the paned widget.
  * 
- * Returns: (transfer none): first child, or %NULL if it is not set.
+ * Returns: (nullable) (transfer none): first child, or %NULL if it is not set.
  *
  * Since: 2.4
  **/
@@ -2380,7 +2380,7 @@ gtk_paned_get_child1 (GtkPaned *paned)
  * 
  * Obtains the second child of the paned widget.
  * 
- * Returns: (transfer none): second child, or %NULL if it is not set.
+ * Returns: (nullable) (transfer none): second child, or %NULL if it is not set.
  *
  * Since: 2.4
  **/
index b9517d711c33811de374eb296e566081582a647c..f8dffd07941d8a210b7f78548a0776e7743083d2 100644 (file)
@@ -4608,8 +4608,8 @@ gtk_places_sidebar_set_location (GtkPlacesSidebar *sidebar,
  * function to get the location that is being referred to during the callbacks
  * for your menu items.
  *
- * Returns: (transfer full): a GFile with the selected location, or #NULL if nothing is visually
- * selected.
+ * Returns: (nullable) (transfer full): a GFile with the selected location, or
+ * %NULL if nothing is visually selected.
  *
  * Since: 3.10
  */
@@ -5096,9 +5096,9 @@ gtk_places_sidebar_list_shortcuts (GtkPlacesSidebar *sidebar)
  * and returns one of them.  This function is used by #GtkFileChooser to implement
  * the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark.
  *
- * Returns: (transfer full): The bookmark specified by the index @n, or
- * #NULL if no such index exist.  Note that the indices start at 0, even though
- * the file chooser starts them with the keyboard shortcut “Alt-1”.
+ * Returns: (nullable) (transfer full): The bookmark specified by the index @n, or
+ * %NULL if no such index exist.  Note that the indices start at 0, even though
+ * the file chooser starts them with the keyboard shortcut "Alt-1".
  *
  * Since: 3.10
  */
index 86d7d0eec54f90594099c559ab6cac8beed74c1f..1e6942d1e8ade1c0eeffcf49819becb4a38206b7 100644 (file)
@@ -379,7 +379,7 @@ gtk_plug_get_embedded (GtkPlug *plug)
  *
  * Retrieves the socket the plug is embedded in.
  *
- * Returns: (transfer none): the window of the socket, or %NULL
+ * Returns: (nullable) (transfer none): the window of the socket, or %NULL
  *
  * Since: 2.14
  **/
index d14fcfd2e8c5185094068666e7e38d14a181da84..4efa5717f9066d9a8cb0beb0e3d8acc55e9e4f50 100644 (file)
@@ -2511,7 +2511,8 @@ gtk_popover_set_default_widget (GtkPopover *popover,
  * Gets the widget that should be set as the default while
  * the popover is shown.
  *
- * Returns: (transfer none): the default widget, or %NULL if there is none
+ * Returns: (nullable) (transfer none): the default widget,
+ * or %NULL if there is none
  *
  * Since: 3.18
  */
index 509f73217e525a19ac6bcd8ef456cf2802557a19..405e003d8d34eac9428c02e25825889fd8e8d4e1 100644 (file)
@@ -1643,7 +1643,7 @@ gtk_progress_bar_set_inverted (GtkProgressBar *pbar,
  * to the text, not a copy of it, so will become invalid
  * if you change the text in the progress bar.
  *
- * Returns: text, or %NULL; this string is owned by the widget
+ * Returns: (nullable): text, or %NULL; this string is owned by the widget
  * and should not be modified or freed.
  */
 const gchar*
index bed06a6d52a6d93b4e109af630c750ed4afaf526..bf32dbfacfb64d33cce77d738716e99f476f3193 100644 (file)
@@ -463,7 +463,7 @@ gtk_recent_filter_set_name (GtkRecentFilter *filter,
  * Gets the human-readable name for the filter.
  * See gtk_recent_filter_set_name().
  *
- * Returns: the name of the filter, or %NULL.  The returned string
+ * Returns: (nullable): the name of the filter, or %NULL.  The returned string
  *   is owned by the filter object and should not be freed.
  *
  * Since: 2.10
index b862c17afa4c94f499eb8e12c1f952e614d4f936..bc1ab0b864a56bcd355d9f80e924804b4ce0fc9c 100644 (file)
@@ -1162,7 +1162,7 @@ build_recent_info (GBookmarkFile *bookmarks,
  * returns a #GtkRecentInfo-struct containing informations about the resource
  * like its MIME type, or its display name.
  *
- * Returns: a #GtkRecentInfo-struct containing information
+ * Returns: (nullable): a #GtkRecentInfo-struct containing information
  *   about the resource pointed by @uri, or %NULL if the URI was
  *   not registered in the recently used resources list. Free with
  *   gtk_recent_info_unref().
index 970c35d6b503e6db5ca6e2b9958ab080c417ae02..ed989361c4da6ef8fba234b3c5a25f786009236a 100644 (file)
@@ -1903,8 +1903,8 @@ gtk_settings_get_for_screen (GdkScreen *screen)
  * Gets the #GtkSettings object for the default GDK screen, creating
  * it if necessary. See gtk_settings_get_for_screen().
  *
- * Returns: (transfer none): a #GtkSettings object. If there is no default
- *  screen, then returns %NULL.
+ * Returns: (nullable) (transfer none): a #GtkSettings object. If there is
+ * no default screen, then returns %NULL.
  **/
 GtkSettings*
 gtk_settings_get_default (void)
index 6213cebe422893d169c61a3655727d11c0f58291..ee24517e7ae9b9a4b84ded662d9a148be4da8337 100644 (file)
@@ -369,7 +369,8 @@ gtk_socket_get_id (GtkSocket *socket)
  * Retrieves the window of the plug. Use this to check if the plug has
  * been created inside of the socket.
  *
- * Returns: (transfer none): the window of the plug if available, or %NULL
+ * Returns: (nullable) (transfer none): the window of the plug if
+ * available, or %NULL
  *
  * Since:  2.14
  **/
index 121292438b7f721d3bfad038e81a0261af05d606..a4037af8d319745bd2b50dd7427ab6f3efb9422d 100644 (file)
@@ -522,7 +522,7 @@ gtk_stack_sidebar_set_stack (GtkStackSidebar *sidebar,
  * Retrieves the stack.
  * See gtk_stack_sidebar_set_stack().
  *
- * Returns: (transfer full): the associated #GtkStack or
+ * Returns: (nullable) (transfer full): the associated #GtkStack or
  *     %NULL if none has been set explicitly
  *
  * Since: 3.16
index 3d1a5ece46c803ec9d402beec34daa461065f756..6d4fe1cdeaab6003223cf7fe6e6dab744523210e 100644 (file)
@@ -436,7 +436,7 @@ gtk_stack_switcher_set_stack (GtkStackSwitcher *switcher,
  * Retrieves the stack.
  * See gtk_stack_switcher_set_stack().
  *
- * Returns: (transfer none): the stack, or %NULL if
+ * Returns: (nullable) (transfer none): the stack, or %NULL if
  *    none has been set explicitly.
  *
  * Since: 3.10
index dd242f139e676131c7d8002dcb59db18afcaa473..d108e0f4775e14b3cb46790e1d7659c6fac795b3 100644 (file)
@@ -751,7 +751,8 @@ gtk_style_context_remove_provider_for_screen (GdkScreen        *screen,
  * Shorthand CSS properties cannot be queried for a location and will
  * always return %NULL.
  *
- * Returns: %NULL or the section where value was defined
+ * Returns: (nullable) (transfer none): %NULL or the section where a value
+ * for @property was defined
  **/
 GtkCssSection *
 gtk_style_context_get_section (GtkStyleContext *context,
@@ -1180,7 +1181,7 @@ gtk_style_context_set_parent (GtkStyleContext *context,
  * Gets the parent context set via gtk_style_context_set_parent().
  * See that function for details.
  *
- * Returns: (transfer none): the parent context or %NULL
+ * Returns: (nullable) (transfer none): the parent context or %NULL
  *
  * Since: 3.4
  **/
@@ -2026,7 +2027,7 @@ gtk_style_context_set_frame_clock (GtkStyleContext *context,
  *
  * Returns the #GdkFrameClock to which @context is attached.
  *
- * Returns: (transfer none): a #GdkFrameClock, or %NULL
+ * Returns: (nullable) (transfer none): a #GdkFrameClock, or %NULL
  *  if @context does not have an attached frame clock.
  *
  * Since: 3.8
index 72da6c53048eb378b5a19ed556c3d33bb3a2c395..7b78f739fe1184362c98b8a9fdde99002111a01e 100644 (file)
@@ -439,7 +439,7 @@ gtk_test_find_sibling (GtkWidget *base_widget,
  * gtk_test_widget_click() for possible caveats involving the search of
  * such widgets and synthesizing widget events.
  *
- * Returns: (transfer none): a valid widget if any is found or %NULL.
+ * Returns: (nullable) (transfer none): a valid widget if any is found or %NULL.
  *
  * Since: 2.14
  **/
index 41ef4a3d8d4305ecd1e758fc3d83b02e84cf62c1..20ced2a2bc481aa37a28fe6c7614af56c016bb90 100644 (file)
@@ -2251,7 +2251,7 @@ gtk_text_buffer_delete_mark (GtkTextBuffer *buffer,
  * Returns the mark named @name in buffer @buffer, or %NULL if no such
  * mark exists in the buffer.
  *
- * Returns: (transfer none): a #GtkTextMark, or %NULL
+ * Returns: (nullable) (transfer none): a #GtkTextMark, or %NULL
  **/
 GtkTextMark*
 gtk_text_buffer_get_mark (GtkTextBuffer *buffer,
index 75cf2d61ca6466c1e0b22d9e346493ed47908ca0..ecc11001b7c60f9079bc1dba2a649af5b14e7221 100644 (file)
@@ -40,8 +40,8 @@ G_BEGIN_DECLS
  * A function that is called to serialize the content of a text buffer.
  * It must return the serialized form of the content.
  *
- * Returns: a newly-allocated array of guint8 which contains the serialized
- *   data, or %NULL if an error occurred
+ * Returns: (nullable): a newly-allocated array of guint8 which contains
+ * the serialized data, or %NULL if an error occurred
  */
 typedef guint8 * (* GtkTextBufferSerializeFunc)   (GtkTextBuffer     *register_buffer,
                                                    GtkTextBuffer     *content_buffer,
index 42569cf16ba03145251d38c31a8e612be70af129..997ae95f628eb09b0547b384a8bdee73a621a436 100644 (file)
@@ -289,7 +289,8 @@ gtk_text_tag_table_add (GtkTextTagTable *table,
  * 
  * Look up a named tag.
  * 
- * Returns: (transfer none): The tag, or %NULL if none by that name is in the table.
+ * Returns: (nullable) (transfer none): The tag, or %NULL if none by that
+ * name is in the table.
  **/
 GtkTextTag*
 gtk_text_tag_table_lookup (GtkTextTagTable *table,
index 801a28fd564e5831f48bd4d1640e21f522347654..c5c45fe2a5d3a172a68e9cbeba35ce6ac051e5c2 100644 (file)
@@ -3460,8 +3460,8 @@ gtk_text_view_set_tabs (GtkTextView   *text_view,
  * “standard” (8-space) tabs are used. Free the return value
  * with pango_tab_array_free().
  * 
- * Returns: copy of default tab array, or %NULL if “standard” 
- *    tabs are used; must be freed with pango_tab_array_free().
+ * Returns: (nullable) (transfer full): copy of default tab array, or %NULL if
+ *    “standard" tabs are used; must be freed with pango_tab_array_free().
  **/
 PangoTabArray*
 gtk_text_view_get_tabs (GtkTextView *text_view)
@@ -10206,7 +10206,7 @@ text_window_get_height (GtkTextWindow *win)
  * height is 0, and are nonexistent before the widget has been
  * realized.
  *
- * Returns: (transfer none): a #GdkWindow, or %NULL
+ * Returns: (nullable) (transfer none): a #GdkWindow, or %NULL
  **/
 GdkWindow*
 gtk_text_view_get_window (GtkTextView *text_view,
index c1852163c19bbcf35bba12ae558aa8a3ff395d99..a3c77780ebf5de95469eabe0211fe5da47cefa30 100644 (file)
@@ -2937,7 +2937,7 @@ gtk_toolbar_get_n_items (GtkToolbar *toolbar)
  * Returns the @n'th item on @toolbar, or %NULL if the
  * toolbar does not contain an @n'th item.
  *
- * Returns: (transfer none): The @n'th #GtkToolItem on @toolbar,
+ * Returns: (nullable) (transfer none): The @n'th #GtkToolItem on @toolbar,
  *     or %NULL if there isn’t an @n'th item.
  *
  * Since: 2.4
index eadb362cd7bd7e285194c4464d68ec0db476cb75..dba46e40b067dc514134f63ee2bd673ddc31cc8a 100644 (file)
@@ -1217,7 +1217,7 @@ gtk_tool_button_set_label (GtkToolButton *button,
  * doesn’t have a label. or uses a the label from a stock item. The returned
  * string is owned by GTK+, and must not be modified or freed.
  * 
- * Returns: The label, or %NULL
+ * Returns: (nullable): The label, or %NULL
  * 
  * Since: 2.4
  **/
@@ -1372,7 +1372,7 @@ gtk_tool_button_set_icon_name (GtkToolButton *button,
  * Returns the name of the themed icon for the tool button,
  * see gtk_tool_button_set_icon_name().
  *
- * Returns: the icon name or %NULL if the tool button has
+ * Returns: (nullable): the icon name or %NULL if the tool button has
  * no themed icon
  *
  * Since: 2.8
@@ -1478,7 +1478,7 @@ gtk_tool_button_set_label_widget (GtkToolButton *button,
  * Returns the widget used as label on @button.
  * See gtk_tool_button_set_label_widget().
  *
- * Returns: (transfer none): The widget used as label
+ * Returns: (nullable) (transfer none): The widget used as label
  *     on @button, or %NULL.
  *
  * Since: 2.4
@@ -1498,7 +1498,7 @@ gtk_tool_button_get_label_widget (GtkToolButton *button)
  * Return the widget used as icon widget on @button.
  * See gtk_tool_button_set_icon_widget().
  *
- * Returns: (transfer none): The widget used as icon
+ * Returns: (nullable) (transfer none): The widget used as icon
  *     on @button, or %NULL.
  *
  * Since: 2.4
index c51fb0b24cbf87e672b03bee1593dc8bcf2e4855..83f8e489dee7026e69ff90ab759c65785f23ca38 100644 (file)
@@ -1489,7 +1489,7 @@ gtk_tool_palette_get_expand (GtkToolPalette   *palette,
  * Gets the item at position (x, y).
  * See gtk_tool_palette_get_drop_group().
  *
- * Returns: (transfer none): the #GtkToolItem at position or %NULL if there is no such item
+ * Returns: (nullable) (transfer none): the #GtkToolItem at position or %NULL if there is no such item
  *
  * Since: 2.20
  */
@@ -1521,8 +1521,8 @@ gtk_tool_palette_get_drop_item (GtkToolPalette *palette,
  *
  * Gets the group at position (x, y).
  *
- * Returns: (transfer none): the #GtkToolItemGroup at position or %NULL
- *     if there is no such group
+ * Returns: (nullable) (transfer none): the #GtkToolItemGroup at position
+ * or %NULL if there is no such group
  *
  * Since: 2.20
  */
index 7b77ef1de2ba6840de532cece04c299a60108fef..48af9f6031a01372f334843ab3b789717bebb535 100644 (file)
@@ -4128,7 +4128,7 @@ gtk_real_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filte
  * child model or points to a row which is not visible in @filter, then %NULL
  * is returned.
  *
- * Returns: A newly allocated #GtkTreePath, or %NULL.
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL.
  *
  * Since: 2.4
  */
@@ -4171,7 +4171,7 @@ gtk_tree_model_filter_convert_child_path_to_path (GtkTreeModelFilter *filter,
  * point to the same location in the model not being filtered. If @filter_path
  * does not point to a location in the child model, %NULL is returned.
  *
- * Returns: A newly allocated #GtkTreePath, or %NULL.
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL.
  *
  * Since: 2.4
  */
index 6cef856463e0134bc898affafaa1f216d0387fad..336f796fa04a019c3b7bf4b531e47891bd446bb3 100644 (file)
@@ -2289,7 +2289,7 @@ gtk_real_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_mode
  * point to the same row in the sorted model.  If @child_path isn’t a valid 
  * path on the child model, then %NULL is returned.
  * 
- * Returns: A newly allocated #GtkTreePath, or %NULL
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL
  **/
 GtkTreePath *
 gtk_tree_model_sort_convert_child_path_to_path (GtkTreeModelSort *tree_model_sort,
@@ -2362,7 +2362,7 @@ gtk_tree_model_sort_convert_child_iter_to_iter (GtkTreeModelSort *tree_model_sor
  * sorted.  If @sorted_path does not point to a location in the child model, 
  * %NULL is returned.
  * 
- * Returns: A newly allocated #GtkTreePath, or %NULL
+ * Returns: (nullable) (transfer full): A newly allocated #GtkTreePath, or %NULL
  **/
 GtkTreePath *
 gtk_tree_model_sort_convert_path_to_child_path (GtkTreeModelSort *tree_model_sort,
index 884e2ddc75fd68efc294acf2badb5a8f5e346638..b8378c3e9acc14cc80866e912504a7d1082cd65e 100644 (file)
@@ -12256,8 +12256,8 @@ gtk_tree_view_get_n_columns (GtkTreeView *tree_view)
  *
  * Gets the #GtkTreeViewColumn at the given position in the #tree_view.
  *
- * Returns: (transfer none): The #GtkTreeViewColumn, or %NULL if the
- *     position is outside the range of columns.
+ * Returns: (nullable) (transfer none): The #GtkTreeViewColumn, or %NULL if the
+ * position is outside the range of columns.
  **/
 GtkTreeViewColumn *
 gtk_tree_view_get_column (GtkTreeView *tree_view,
@@ -13444,8 +13444,8 @@ gtk_tree_view_set_cursor_on_cell (GtkTreeView       *tree_view,
  * This is used primarily to compare to `event->window`
  * to confirm that the event on @tree_view is on the right window.
  *
- * Returns: (transfer none): A #GdkWindow, or %NULL when @tree_view
- *     hasn’t been realized yet
+ * Returns: (nullable) (transfer none): A #GdkWindow, or %NULL when @tree_view
+ * hasn’t been realized yet.
  **/
 GdkWindow *
 gtk_tree_view_get_bin_window (GtkTreeView *tree_view)
index d5e9ae11094a9c397cac47df201c862999dcdcc8..26f452a078096a1a62b226c37c4b770cf00bed1f 100644 (file)
@@ -2520,7 +2520,7 @@ gtk_tree_view_column_set_widget (GtkTreeViewColumn *tree_column,
  * Returns the #GtkWidget in the button on the column header.
  * If a custom widget has not been set then %NULL is returned.
  *
- * Returns: (transfer none): The #GtkWidget in the column
+ * Returns: (nullable) (transfer none): The #GtkWidget in the column
  *     header, or %NULL
  **/
 GtkWidget *
@@ -3101,7 +3101,7 @@ gtk_tree_view_column_queue_resize (GtkTreeViewColumn *tree_column)
  * If @column is currently not inserted in any tree view, %NULL is
  * returned.
  *
- * Returns: (transfer none): The tree view wherein @column has
+ * Returns: (nullable) (transfer none): The tree view wherein @column has
  *     been inserted if any, %NULL otherwise.
  *
  * Since: 2.12
index 24a7249151183091703227ba3660ff78f21b4546..f8199fa92cace3354a2f1dcc108912c0baa89c66 100644 (file)
@@ -5766,7 +5766,8 @@ gtk_widget_queue_resize_no_redraw (GtkWidget *widget)
  *
  * Unrealized widgets do not have a frame clock.
  *
- * Returns: (transfer none): a #GdkFrameClock (or #NULL if widget is unrealized)
+ * Returns: (nullable) (transfer none): a #GdkFrameClock,
+ * or #NULL if widget is unrealized
  *
  * Since: 3.8
  */
index bed78cf286c7367d9f3ba53e0564054d7c734a98..bb1265065f153cd68152776102df47ec312929cd 100644 (file)
@@ -337,7 +337,7 @@ _gtk_window_group_remove_device_grab (GtkWindowGroup *window_group,
  *
  * Returns the current grab widget for @device, or %NULL if none.
  *
- * Returns: (transfer none): The grab widget, or %NULL
+ * Returns: (nullable) (transfer none): The grab widget, or %NULL
  *
  * Since: 3.0
  */